<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<#include "/_view/common/jquery.ftl"/>
</head>
<body>


	<p>用户注册界面</p>


	<form id="form1" action="register2" method="post">
		
		<p>
			用户名: <input type="text" name="username"  required="required" value="aaaaa"/>
		</p>
		<p>
			密码: <input type="password" name="password"  required="required" value="123456"/>
		</p>
		<p>
			昵称: <input type="text" name="nickname" />
		</p>
		<p>
			手机号码: <input type="text" name="phone" required="required"/>(用于约车用,找回密码,必须真实)
		</p>
		<p>
			校验码: <input type="text" name="verify_code" required="required"/> <img
				src="captcha" id="verify_code_img"  />
		</p>
		<input type="submit" value="Submit" />
	</form>

	<p>
		<a href="/?${_now}">首页</a>
	</p>
</body>
<script type="text/javascript">
	$(document).ready(function() {
		$("#form1").submit(function() {
			postlocationLink("#form1", "register2", "/line/lineList", true,"#verify_code_img");
			return false;
		});
		
		$("#verify_code_img").on("click",function(){
			$(this).attr("src",$(this).attr("src")+"?");
		});
		
	});
</script>
</html>
